//
//  GoodsSubject.m
//  MyProject
//
//  Created by dllo on 15/10/30.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "GoodsSubject.h"

@implementation GoodsSubject

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"description"]) {
        self.descrip = value;
    }
    if ([key isEqualToString:@"author"]) {
        self.username = [value objectForKey:@"username"];
        self.avatar1 = [value objectForKey:@"avatar"];
    }
    if ([key isEqualToString:@"id"]) {
        self.nameId = value;
    }
}

- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}

@end
